-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: fragments generator #41
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
destructure fragments-cli run util
Nelfimov
requested changes
Dec 16, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не хватает ридми с примером правильной структуры дизайна
fragments/fragments-generator/src/strategy/tests/create-box.test.ts
Outdated
Show resolved
Hide resolved
Nelfimov
requested changes
Dec 17, 2024
Дополнительным ПРом к этому сделай пожалуйста бамп |
Nelfimov
approved these changes
Dec 18, 2024
Closed
Amiditin
added a commit
that referenced
this pull request
Jan 13, 2025
* feat: add base fragments-cli * feat: add base fragments-generator * feat: add load-node method to figma-file-loader * feat: add theme option to generate fragments command * feat: add process-file theme path * feat: add get-value-key-from-theme to fragments-generator strategy * feat: add component wrapper fro fragments * feat: add create wrapper element for array text elements * feat: add figma file-utils with process and write file utils destructure fragments-cli run util * refactor: parse node-id in load-node method * feat: add create dynamic fragments tree to fragments generator * refactor: destructure create-fragment strategy * feat: add dynamic imports when creating component * feat: add theme-mapping strategy * feat: add create-text strategy * feat: add create-box strategy * refactor: move getting attributes to theme-mapping strategy * feat: add to-px-string util * refactor: move getting box attributes to theme-mapping strategy * feat: add get-border-radius to theme-mapping strategy * feat: add get-border to theme-mapping strategy * feat: add get-shadow to theme-mapping strategy * feat: add background attribute to create box element * feat: add width and height attributes to create-box-element * feat: add id attribute to formatted-message element * feat: add text-align attribute to create-text-element * feat: add create-button strategy * feat: add base create-input strategy * feat: add create-input strategy to create-fragment * feat: add theme-mapping strategy test * feat: add create-box strategy test * feat: add create-text strategy test * feat: add create-button strategy test * feat: add create-input strategy test * feat: add is-instance to figma utils * feat: add question to get figma access token to figma-cli * fix: eslint validation * chore: add yarn sdks * chore: add exports to package json files * chore: remove generate-fragments script * refactor: use import from node * refactor: use pino logger instead of npmlog * feat: add name option to generate fragment * refactor: change fragment generator strategies folder structure and file names * docs: add fragments-generator to readme * chore: remove exports from packages * feat: add display-name prop to create-component result * feat: add options to pino logger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #40